package edu.sctu.jsoup.service;

import edu.sctu.jsoup.entity.StudentEntity;
import edu.sctu.jsoup.repo.StudentRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 14394 on 2017/10/9.
 */
@Service
public class StudentService {
     @Autowired
    private StudentRepo studentRepo;

    public void run(){
        StudentEntity chen =new StudentEntity();
        chen.setName("chen");
        chen.setAge(20);
        studentRepo.save(chen);
    }
}
